﻿using System.Data.Entity.ModelConfiguration;
using Zeus.Biz.MySql.EF.Model;

namespace Zeus.Biz.MySql.EF.Config
{
    public class CustomerConfiguration : EntityTypeConfiguration<Customer>
    {
        public CustomerConfiguration()
        {
            Property(d => d.Id).IsRequired();
            Property(d => d.Name).IsRequired();

            // Table & Column Mappings
            this.ToTable("CUSTOMER");
        }
    }
}
